You are here: Grammar and Syntax > Flow Control Statements > While...Wend Statements > Continue Statements

Continue Statements

Use Continue statements to restart a While…Wend statement loop.

Continue

Executing the Continue statement stops the current sequence of statement execution and restarts program flow at the beginning of the loop. This causes the While statement to retest the condition and, if true, execute the loop again.

Statements after the Continue keyword are not executed. Continue is often, but not always, activated by an IF test. Here is an example:

(Ellipses in the following examples represent additional statements, not shown.)

While(#x < 10)
...
If (value)
Continue
End
...
Wend